<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();

defineOptions({
  name: 'L2',
});

console.log('L2-init');

const jump = () => {
  router.push('L3');
};
</script>

<template>
  <h3>L2</h3>

  <button @click="jump">L3</button>
</template>

<style scoped>
button {
  margin-right: 20px;
}
</style>
